<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="/pages/layout/masterlayout.xhtml"
	xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="pageTitle">MyPartyManager - #{msg['entity.party.new']}</ui:define>

	<ui:define name="header">

		<h3> #{msg['entity.party.new']}</h3>

	</ui:define>

	<ui:define name="content">

		<h:form id="formParty">
		
			<!--  form -->
			<div class="formContainer">
				
				<div class="formContent">
				
					<h:panelGrid columns="2">
						
						<h:outputLabel for="titleInputText">
							<h:outputText id="titleLabel" value="Title" />
						</h:outputLabel>
						<h:inputText id="titleInputText" value="#{partyBean.party.name}" />
		
						<h:outputLabel for="announcementInputText">
							<h:outputText id="announcementLabel" value="Announcement" />
						</h:outputLabel>
						<h:inputTextarea id="announcementInputText" value="#{partyBean.party.announcement}" />
		
						<h:outputLabel for="partyDateInputText">
							<h:outputText id="partyDateLabel" value="Party Date" />
						</h:outputLabel>
						<p:calendar id="partyDateInputText" value="#{partyBean.party.partyDate}" />
		
						<h:outputLabel for="otherManagersInputText">
							<h:outputText id="otherManagersLabel" value="Other Managers" />
						</h:outputLabel>
						<h:inputTextarea id="otherManagersInputText" value="#{partyBean.otherManagers}" />
		
						<h:outputLabel for="googleMapsAdressInputText">
							<h:outputText id="googleMapsAdressLabel" value="Google Maps Adress" />
						</h:outputLabel>
						<h:inputText id="googleMapsAdressInputText" value="#{partyBean.party.googleMapsAdress}" />
		
						<h:outputLabel for="adressInputText">
							<h:outputText id="adressLabel" value="Adress" />
						</h:outputLabel>
						<h:inputText id="adressInputText" value="#{partyBean.party.adress}" />
	
					</h:panelGrid>  
				
				</div>

				<div class="formControls">
					<h:commandButton action="#{partyBean.createParty}" value="#{msg['app.controlers.button.create']}" />
					<h:commandButton action="#{partyBean.cancel}" value="#{msg['app.controlers.button.cancel']}" />
				</div>
							
			</div>

		</h:form>

	</ui:define>

</ui:composition>

